/**
 * MerchandiseService.java
 * Copyright (C) 2013 Gank
 * Simple Currency Trade System
 * 
 */
package com.gank.ct.service;

import java.util.List;

import com.gank.ct.dao.IMerchandiseDao;
import com.gank.ct.domain.Merchandise;

/**
 * Copyright (C) 2013:Gank<br/>
 * Project:Curreny Trade<br/>
 * Module ID:<br/>
 * Comments:Simple Currency Trade System<br/>
 * JDK version used:JDK1.6<br/>
 * Package:com.gank.ct.service<br/>
 * Author:Michael Wu<br/>
 * Create Date:2013-11-6<br/>
 * Modified By:<br/>
 * Modified Date:<br/>
 * Why & What is modified:<br/>
 * Version:0.1<br/>
 */
public class MerchandiseService implements IMerchandiseService {
	// 商品档案持久化处理接口
	private IMerchandiseDao merchandiseDao;

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.zds.slms.service.IMerchandiseService#findMerchandise(com.zds.slms
	 * .domain.Merchandise)
	 */
	public List<Merchandise> findMerchandise(Merchandise merchandise) {
		return merchandiseDao.findMerchandise(merchandise);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.zds.slms.service.IMerchandiseService#saveMerchandise(com.zds.slms
	 * .domain.Merchandise)
	 */
	public void saveMerchandise(Merchandise merchandise) {
		merchandiseDao.saveMerchandise(merchandise);

	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.zds.slms.service.IMerchandiseService#deleteMerchandise(java.lang.
	 * String[])
	 */
	public void deleteMerchandise(String[] merchandiseId) {
		merchandiseDao.deleteMerchandise(merchandiseId);

	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.zds.slms.service.IMerchandiseService#updateMerchandise(com.zds.slms
	 * .domain.Merchandise)
	 */
	public void updateMerchandise(Merchandise merchandise) {
		merchandiseDao.updateMerchandise(merchandise);

	}

	/**
	 * @return the merchandiseDao
	 */
	public IMerchandiseDao getMerchandiseDao() {
		return merchandiseDao;
	}

	/**
	 * @param merchandiseDao
	 *            the merchandiseDao to set
	 */
	public void setMerchandiseDao(IMerchandiseDao merchandiseDao) {
		this.merchandiseDao = merchandiseDao;
	}

}
